import request from "@/utils/request";

// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export function getBookList() {
  return request ({
    url: '/account-book/list',
    method: 'get'
  })
}

// 创建账本
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export function createBook(data: unknown) {
  return request ({
    url: '/account-book/create',
    method: 'post',
    data
  })
}